<?php

namespace Admin\Controller;

use Think\Controller;

class IndexController extends Controller {

    public function __construct() {
        parent::__construct();
        session("[start]");        
        if (!isset($_SESSION['admininfo']) || $_SESSION['admininfo']['id'] < 1) {
            $this->redirect('Login/index');
        }
    }

    public function index() {
        $this->display();
    }

}
